<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>注册功能</title>
	</head>
	<script type="text/javascript">
function back(){
 window.open('login.jsp', 'newwindow');
}
</script>
	<body>
		<form name="registerForm" action="<%=path%>/u/userLogin.do"
			method="register">
			<div align="left">
				<table>
					<tr align="center">
						<td>
							用户名：
						</td>
						<td>
							<input type="text" name="username" />
						</td>
					</tr>
					<tr>
						<td>
							密&nbsp;&nbsp;码：
						</td>
						<td>
							<input type="password" name="password" />
						</td>
					</tr>
					<tr>
						<td>
							确&nbsp;&nbsp;认：
						</td>
						<td>
							<input type="password" name="confirmPassword" />
						</td>
					</tr>
					<tr>
						<td>
							性&nbsp;&nbsp;别：
						</td>
						<td>
							<select type="select" name="sex">
								<option value="男">
									男
								</option>
								<option value="女">
									女
								</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>
							邮&nbsp;&nbsp;箱：
						</td>
						<td>
							<input type="text" name="email" />
						</td>
					</tr>
					<tr>
						<td>
							电&nbsp;&nbsp;话：
						</td>
						<td>
							<input type="text" name="phone" />
						</td>
					</tr>
					<tr>
						<td>
							地&nbsp;&nbsp;址：
						</td>
						<td>
							<input type="text" name="address" />
						</td>
					</tr>
					<tr>
						<td>
							<input type="button" value="注册"
								onclick="document.forms['registerForm'].submit();" />
						</td>
						<td>
							<input type="button" value="返回" onclick="back();" />
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</html>
